<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class SwtPledge extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'swt_pledges';

    public function coin()
    {
        return $this->belongsTo(SwtMarketChains::class, 'coin_id','id');
    }

    public function rules()
    {
        return $this->hasMany(SwtPledgesRule::class,'pledge_id','id');
    }

}
